﻿using System;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace NHTClient.Objects
{
    public partial class NHTChat : XtraForm
    {
        private NHTMain mainForm;
        private String ProfileIdentifier { get; set; }

        public NHTChat(NHTMain form)
        {
            InitializeComponent();

            mainForm = form;
            ProfileIdentifier = "9ilEmXMF5IeZQCM";

            var browser = new WebDocument("asset://chat/9ilEmXMF5IeZQCM.html", ProfileIdentifier)
            {
                Dock = DockStyle.Fill
            };

            this.Controls.Add(browser);
        }

        private void NHTChat_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
                case Keys.Escape:
                    Close();
                    break;
            }
        }
    }
}